﻿/*
 * Filehandling.h
 *
 * Created: 07-03-2013 13:22:10
 *  Author: Bootie
 */ 


#ifndef FILESYSTEMHANDLER_H_
#define FILESYSTEMHANDLER_H_

#include "../FatFS/ff.h"
#include <string.h>

class Filesystemhandler
{
	public:
		Filesystemhandler(BYTE _vol);
		~Filesystemhandler();
		
		bool Mount();
		bool Unmount();
		bool CheckFS();
		bool CreateFS();

	private:	
		FATFS fs;
		BYTE vol;
		DIR dir;
		static const TCHAR ROOT_DIRECTORY[];
};




#endif /* FILESYSTEMHANDLER_H_ */